package cn.qzuie.smart.module.dorm.controller.admin.bills.vo;

import lombok.*;
import java.util.*;
import io.swagger.v3.oas.annotations.media.Schema;
import cn.qzuie.smart.framework.common.pojo.PageParam;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

import static cn.qzuie.smart.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 账单分页 Request VO")
@Data
public class BillsPageReqVO extends PageParam {

    @Schema(description = "宿舍ID", example = "24968")
    private Long dormitoryId;

    @Schema(description = "能源账单集合包括照明，空调，水")
    private Long energyUsageIds;

    @Schema(description = "账单日期")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] billDate;

    @Schema(description = "总金额")
    private Double totalAmount;

    @Schema(description = "余额")
    private Double balance;

    @Schema(description = "欠费")
    private Double fee;

    @Schema(description = "截止日期")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] dueDate;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

}